home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14581 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 68 6f 73 74 2e 63 |Path: ne|wshost.c|
|00000010| 74 67 2e 63 6f 6d 21 6e | 65 77 73 61 64 6d 0a 46 |tg.com!n|ewsadm.F|
|00000020| 72 6f 6d 3a 20 22 53 2e | 20 46 2e 20 4c 6f 74 74 |rom: "S.| F. Lott|
|00000030| 22 20 3c 73 6c 6f 74 74 | 40 64 65 6c 70 68 69 2e |" <slott|@delphi.|
|00000040| 63 6f 6d 3e 0a 4e 65 77 | 73 67 72 6f 75 70 73 3a |com>.New|sgroups:|
|00000050| 20 63 6f 6d 70 2e 6c 61 | 6e 67 2e 63 0a 53 75 62 | comp.la|ng.c.Sub|
|00000060| 6a 65 63 74 3a 20 52 65 | 3a 20 53 71 75 61 72 65 |ject: Re|: Square|
|00000070| 20 6f 66 20 61 20 66 6c | 6f 61 74 69 6e 67 20 70 | of a fl|oating p|
|00000080| 6f 69 6e 74 20 6e 75 6d | 62 65 72 2e 0a 44 61 74 |oint num|ber..Dat|
|00000090| 65 3a 20 4d 6f 6e 2c 20 | 31 35 20 41 70 72 20 31 |e: Mon, |15 Apr 1|
|000000a0| 39 39 36 20 31 36 3a 30 | 39 3a 30 36 20 2d 30 34 |996 16:0|9:06 -04|
|000000b0| 30 30 0a 4f 72 67 61 6e | 69 7a 61 74 69 6f 6e 3a |00.Organ|ization:|
|000000c0| 20 43 54 47 0a 4d 65 73 | 73 61 67 65 2d 49 44 3a | CTG.Mes|sage-ID:|
|000000d0| 20 3c 33 31 37 32 41 43 | 45 32 2e 34 35 46 36 40 | <3172AC|E2.45F6@|
|000000e0| 64 65 6c 70 68 69 2e 63 | 6f 6d 3e 0a 52 65 66 65 |delphi.c|om>.Refe|
|000000f0| 72 65 6e 63 65 73 3a 20 | 3c 44 70 6f 30 4d 6e 2e |rences: |<Dpo0Mn.|
|00000100| 44 45 6f 40 69 72 65 71 | 2e 68 79 64 72 6f 2e 71 |DEo@ireq|.hydro.q|
|00000110| 63 2e 63 61 3e 0a 52 65 | 70 6c 79 2d 54 6f 3a 20 |c.ca>.Re|ply-To: |
|00000120| 73 6c 6f 74 74 40 64 65 | 6c 70 68 69 2e 63 6f 6d |slott@de|lphi.com|
|00000130| 0a 4e 4e 54 50 2d 50 6f | 73 74 69 6e 67 2d 48 6f |.NNTP-Po|sting-Ho|
|00000140| 73 74 3a 20 74 73 5f 70 | 6f 72 74 32 31 2e 63 74 |st: ts_p|ort21.ct|
|00000150| 67 2e 63 6f 6d 0a 4d 69 | 6d 65 2d 56 65 72 73 69 |g.com.Mi|me-Versi|
|00000160| 6f 6e 3a 20 31 2e 30 0a | 43 6f 6e 74 65 6e 74 2d |on: 1.0.|Content-|
|00000170| 54 79 70 65 3a 20 74 65 | 78 74 2f 70 6c 61 69 6e |Type: te|xt/plain|
|00000180| 3b 20 63 68 61 72 73 65 | 74 3d 75 73 2d 61 73 63 |; charse|t=us-asc|
|00000190| 69 69 0a 43 6f 6e 74 65 | 6e 74 2d 54 72 61 6e 73 |ii.Conte|nt-Trans|
|000001a0| 66 65 72 2d 45 6e 63 6f | 64 69 6e 67 3a 20 37 62 |fer-Enco|ding: 7b|
|000001b0| 69 74 0a 58 2d 4d 61 69 | 6c 65 72 3a 20 4d 6f 7a |it.X-Mai|ler: Moz|
|000001c0| 69 6c 6c 61 20 32 2e 30 | 4a 61 76 61 42 31 20 28 |illa 2.0|JavaB1 (|
|000001d0| 4d 61 63 69 6e 74 6f 73 | 68 3b 20 49 3b 20 50 50 |Macintos|h; I; PP|
|000001e0| 43 29 0a 54 6f 3a 20 52 | 79 73 7a 61 72 64 20 50 |C).To: R|yszard P|
|000001f0| 61 74 65 72 20 3c 70 61 | 74 65 72 40 69 72 65 71 |ater <pa|ter@ireq|
|00000200| 2e 63 61 3e 0a 0a 52 79 | 73 7a 61 72 64 20 50 61 |.ca>..Ry|szard Pa|
|00000210| 74 65 72 20 77 72 6f 74 | 65 3a 0a 3e 20 0a 3e 20 |ter wrot|e:.> .> |
|00000220| 48 6f 77 20 63 6f 75 6c | 64 20 49 20 6f 70 74 69 |How coul|d I opti|
|00000230| 6d 69 7a 65 20 66 6f 72 | 20 61 20 73 70 65 65 64 |mize for| a speed|
|00000240| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 20 74 6f | the fun|ction to|
|00000250| 20 63 6f 6d 70 75 74 65 | 20 74 68 65 20 73 71 75 | compute| the squ|
|00000260| 61 72 65 0a 3e 20 6f 66 | 20 61 20 66 6c 6f 61 74 |are.> of| a float|
|00000270| 69 6e 67 20 70 6f 69 6e | 74 20 6e 75 6d 62 65 72 |ing poin|t number|
|00000280| 3f 20 20 49 20 64 65 66 | 69 6e 65 64 20 61 20 66 |? I def|ined a f|
|00000290| 75 6e 63 74 69 6f 6e 20 | 61 73 20 66 6f 6c 6c 6f |unction |as follo|
|000002a0| 77 73 3a 0a 3e 20 69 6e | 6c 69 6e 65 20 66 6c 6f |ws:.> in|line flo|
|000002b0| 61 74 20 73 71 72 28 66 | 6c 6f 61 74 20 61 29 20 |at sqr(f|loat a) |
|000002c0| 7b 72 65 74 75 72 6e 20 | 61 2a 61 3b 7d 0a 3e 20 |{return |a*a;}.> |
|000002d0| 6f 72 20 6d 61 63 72 6f | 20 76 65 72 73 69 6f 6e |or macro| version|
|000002e0| 0a 3e 20 23 64 65 66 69 | 6e 65 20 73 71 72 28 61 |.> #defi|ne sqr(a|
|000002f0| 29 20 28 28 61 29 2a 28 | 61 29 29 2e 0a 3e 20 49 |) ((a)*(|a))..> I|
|00000300| 66 20 59 6f 75 20 68 61 | 76 65 20 61 20 62 65 74 |f You ha|ve a bet|
|00000310| 74 65 72 20 73 6f 6c 75 | 74 69 6f 6e 20 67 69 76 |ter solu|tion giv|
|00000320| 65 20 6d 65 20 61 20 66 | 65 65 64 20 62 61 63 6b |e me a f|eed back|
|00000330| 2c 20 70 6c 65 61 73 65 | 2e 0a 3e 20 0a 3e 20 52 |, please|..> .> R|
|00000340| 79 73 7a 61 72 64 0a 3e | 20 70 61 74 65 72 40 69 |yszard.>| pater@i|
|00000350| 72 65 71 2e 63 61 0a 0a | 0a 4e 6f 74 65 2c 20 6d |req.ca..|.Note, m|
|00000360| 6f 73 74 20 43 20 63 6f | 6d 70 69 6c 65 72 73 20 |ost C co|mpilers |
|00000370| 67 65 6e 65 72 61 74 65 | 20 63 6f 64 65 20 74 6f |generate| code to|
|00000380| 20 65 78 70 61 6e 64 20 | 66 6c 6f 61 74 73 0a 74 | expand |floats.t|
|00000390| 6f 20 64 6f 75 62 6c 65 | 73 20 66 6f 72 20 70 75 |o double|s for pu|
|000003a0| 72 70 6f 73 65 73 20 6f | 66 20 64 6f 69 6e 67 20 |rposes o|f doing |
|000003b0| 61 72 69 74 68 6d 65 74 | 69 63 2e 0a 0a 44 69 73 |arithmet|ic...Dis|
|000003c0| 63 61 72 64 20 74 68 65 | 20 66 6c 6f 61 74 20 61 |card the| float a|
|000003d0| 6e 64 20 75 73 65 20 64 | 6f 75 62 6c 65 20 61 6e |nd use d|ouble an|
|000003e0| 64 20 65 76 65 72 79 74 | 68 69 6e 67 20 77 69 6c |d everyt|hing wil|
|000003f0| 6c 20 0a 72 75 6e 20 66 | 61 73 74 65 72 20 77 69 |l .run f|aster wi|
|00000400| 74 68 6f 75 74 20 74 68 | 65 20 63 6f 65 72 63 69 |thout th|e coerci|
|00000410| 6f 6e 2e 20 20 4e 6f 77 | 20 74 68 65 20 71 75 65 |on. Now| the que|
|00000420| 73 74 69 6f 6e 20 69 73 | 2c 0a 68 6f 77 20 66 61 |stion is|,.how fa|
|00000430| 73 74 20 69 73 20 79 6f | 75 72 20 66 6c 6f 61 74 |st is yo|ur float|
|00000440| 69 6e 67 2d 70 6f 69 6e | 74 20 68 61 72 64 77 61 |ing-poin|t hardwa|
|00000450| 72 65 3f 0a 0a 2d 2d 20 | 0a 53 2e 20 4c 6f 74 74 |re?..-- |.S. Lott|
|00000460| 0a 43 6f 6e 73 75 6c 74 | 61 6e 74 2c 20 4e 45 20 |.Consult|ant, NE |
|00000470| 52 65 67 69 6f 6e 0a 43 | 54 47 0a 53 4c 4f 54 54 |Region.C|TG.SLOTT|
|00000480| 40 44 45 4c 50 48 49 2e | 43 4f 4d 0a 53 2e 4c 4f |@DELPHI.|COM.S.LO|
|00000490| 54 54 40 43 54 47 2e 43 | 4f 4d 0a 38 30 30 2d 39 |TT@CTG.C|OM.800-9|
|000004a0| 39 32 2d 35 33 35 30 20 | 62 6f 78 20 37 30 35 33 |92-5350 |box 7053|
|000004b0| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+